package com.atstudy.headline.web.app.service;

import com.atstudy.headline.entity.UserFollows;
import com.atstudy.headline.entity.Users;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author A
* @description 针对表【user_follows(用户关注关系表)】的数据库操作Service
* @createDate 2025-06-12 13:55:01
*/
public interface UserFollowsService extends IService<UserFollows> {

    /**
     * 关注列表
     * @param page
     * @param userId
     * @return
     */
    IPage<Users> getFollowing(IPage<Users> page, Integer userId);

    /**
     * 粉丝列表
      * @param page
     * @param userId
     * @return
     */
    IPage<Users> getFollower(IPage<Users> page, Integer userId);

}
